add html5 and js support