Update index.js

Updated to work with balanced-official version 1.1.0