Sample rails app using Ajax and Javascript