removing main logic from index.html because of weird bug causing changes to be lost