moved https.js into the main library