Added proper support for JSONP requests