* Update to use a historyId to track invalid popstates * Remove log from debugging * Use Math.random instead of Date.getTime to avoid mocks