main.js is used for home page