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

In IE10, browser doesn't work after loading preview from form
Merge pull request #124 from quiaro/2.2.x

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