Added js APIs