Fixed an issue with IE11, where the copied in variables are reset once the document is written.