web app using sinatra and ajax