moving all js into index.html to see if that will work