add js() and a test for it