add ibeacon support and upgrade the bc.js