Learning Javascript with Rails