added handling of invalid JSONP requests