Use window.localtion.replace

Probubly better in this case.

http://stackoverflow.com/a/506004/227176