Updated JavaScript code in regard to documentation

Updated code documentation for being able to automatically generate a proper documentation using JSDuck.
It is ok. Basically, they all export ```dataTypes``` (although some modules fill the global ```dataTypes``` object with additional functionality). The configuration is just used for the tests. It would, of course, be awesome, to have a package manager for JS and CSS files allowing us to get rid of any shiming.