Update index.html

added js functions