modified bobby.js