Simple Jokes api build in ruby on sinatra