Properties & refactor main.js to setup.js