Return data from sinatra the way angular expects it