Closes #164 adding @grant unsafeWindow