Splitted main.js

Splitted main.js into the main-part and everything for a month-table
Init in main.js

Moved the adding of event listeners into main.js and out of HTML.