Use document.location.assign()

Eliminate addons.mozilla.org validator warning