Added js api