RESTful services with jQuery, PHP and the Slim Framework