followed railscast to create a clientside js application