RESTful, Slim framework Tests and jQuery