adding HTML5 mode