add javascript sample.html, change index.html