Added various JavaScript bindings.