Update for html5