WIP restructure js of resetting inventory.
Properly generate right amount of stocks.