Fixes Chrome history api bug where onpopstate is called on first page load. Fixes another small IE and Chrome discrepancy