Revert "Modified the index.html and simplified the JS script"

This reverts commit 1665540f2fa5eceb799ea2616bf972e3109824b1.