Cleaned up bbb_utils.js