Fixing bugs in JS API
Autocommit Wed Sep 24 09:21:44 EST 2014