Fixed for Firefox Nightly

Works in Firefox Nightly and also Chromium