Playing with JS solution for changing product quantities