In the block of code under this heading, both instances of BagBuddy.itemTimes should be replaced with BagBuddy_ItemTimes.
BagBuddy.itemTimes
BagBuddy_ItemTimes