tricky one are you calling the BBB IPI from a URL e.g. something like
<script src="www.bbb.com/script.js"></script>
or is it local
<script src="https://stackoverflow.com/questions/10537282/js/bbb.js"></script>
if it is not a local scrip try and download it, i have had similar problems and this has fixed them, also if you are calling the API from another page
<?php include_once "bbb.html" ?>
make sure that the script hook is on the calling page and the called page. it shouldn’t matter on live app but it sometimes does.