JavaScript-based embed

There was an issue with using the JavaScript-based embed (the default one), where it would throw an error when no-protocol was defined as the URL.

Sorry for the trouble.