Improved deleting a product from taxon javascript