put bb.js in main dir