implemented protocol-relative links for external js.