added the HTML5 mode