modify deploy script; fix bugs in product.js