Issue #73 Add documentation to javascript files