js api docs correction