Refatoring JS code: using EventHandlers instead of onClick events