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