Changed index.html to now use the java script funcs