First time playing with Sinatra, tinkered with jQuery, messy messy code...