Javascript Rules in Openhab 3

Yes, of course. See OH 3 Examples: Writing and using JavaScript Libraries in MainUI created Rules