Data formatting with sinatra/respond_to