Fixed some code bugs at index.html