Reorganizing Index and Getting the JS working correctly

-Renamed JS file
-Indented and organized JS file correctly