Updated bag.js