Rails app with controller and js file