bug fix related to setting currentScript.ownerDocument crash by chrome update