Update index.htm

minor changes to javascript