Added HTML5 history support