stackoverflow.js: using https for api calls