fixed error in with history.js in IE