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