Fixing bugs in JS API
Autocommit Wed Sep 24 10:09:43 EST 2014