Update index.htm

-moved script to seperate js file
-changed some of the tag formatting