merge js and html5 to web application