Replace too-new "new window.Range()" by document.createRange()