Turned script into sinatra app