modify formatting of index.html
separate the onLoad() function and the loadVideo() function, so loadVideo() can be called multiple times, and fix a couple bugs in server.js