Support the HTML5 history API