Added referer url to functions to support QA and Dev ArcGIS environments