update index.html to call main()