Started to split the JS begining with events.js