Fix bug in add_products.js