JS updated

onClick funtions changed to event listener.