move the javascript to main.js, Add product page