Wrote javascript api documents