ruby --> js