Done a query API
Adding JSONP support