Switch to html5 location mode