add sample.html and change index.html with javascript