Finished the documentation for javascript