Added script to build the JS documentation
Improved Javascript docs for JSDoc

Added namespaces so that JSDoc can find them.
Fixed a few warnings.
Improved some comments.
Merge pull request #9177 from owncloud/jsdocexperiment

Improved JS Docs + added build script for JS Docs