Consolidated product.js into main.js and switched to layout.