Fixed bugs in api.js
Merge branch 'master' of https://github.com/thetmkay/bloomboard