Adding a new main.js which is a refactor of the old for cleaner code