set up html5 mode