Update bb.js

modify from web