api whitespace
removed duplication from js api