Cleans up index.html file
Moves js to external files