added main.js file for week3 gold.