Fixes to BintreeAV.js