Made the thing run on Sinatra and ruby
Added mockup code since ajax.js endpoint no longer live