jQuery AJAX front-end consuming data from a Sinatra based REST api