fix(bp.js): add conditionals to support non-Chrome browsers