Implement a jsonp callback in api.php