updated code for html5
updated to html5
more html5 changes