updated js api library