Get html5 mode working