Update index.html

removed onclick etc from html markup and added all events using addeventlistner instead.