JS: updating stock info on checkbox status