JS in Ruby