added main.js file to pages branch.