rebuild for html5