update cdn_js to use protocol aware format