Removed document.write call and replaced with an appendChild call.

Replaced document.write call that adds VBScript with a document.appendChild call due to the document.write call failing when script is loaded asynchronously