Fix jsonp calls to the API over https

PS. lets kill this branch off after this merge