refactor admin/product.js