Add revealing module pattern in main.js