More bcad.js work