Updated code(JS) to remove products