Fixed NJAX in IE<=9 and other browsers that don't support history.pushState and history.replaceState.