call bag.js via require