CRAFTER-459: Fixes lost reference to script (bug in IE10)

In IE10, browser doesn't work after loading preview from form
Merge pull request #126 from quiaro/master

CRAFTER-459: Fixes lost reference to script (bug in IE10)