Use events, load more, code seperated to main.js