Updated to the new js bindings