Fix JS bindings.