Update index.html

broke out javascript into separate file