Cleaned up the product.js's switch statement and reorganized file for readability.