Short term fix for changes to unsafeWindow for Firefox 30