Fixed html5 generation