added function getJSONPRequestUrl to be more modular