fixed the way the JS works
Tweeked the index.html for fun