Support HTML5 history API polyfill.