fix product.js typeof missing