js api documentation added