refactor(balanced.js): helpers, devDependencies