Updated JavaScript code in regard to documentation

Updated code documentation for being able to automatically generate a proper documentation using JSDuck.
Now there are 3 modules exporting `'dataTypes'`. Are you sure this is still correct?