balanced.js doc optimization