Added jsdoc compatible comments to JavaScript and integrated jsdoc into the build.