Modify javascript api docs