add Sinatra, update routes in js