Add initial documentation for JavaScript