Fix for "history breaks" on 'document.open()' for firefox. Opera still has this problem (maybe fixed in v13?)