Code generated to embed JS uses HTTP. If it is used in website serving content over HTTPS, browser generates insecure content warning and don't load the script.
It will be good to serve JS as well as CSS link contained in JS over HTTPS. By doing so, users will be able to embed JS without insecure content warning when using HTTPS.