add js support for html5