Fix "Uncaught ReferenceError" in bp.js