Refactoring: module-pattern and JsHint/JsLint formatting

integration of a namespace and module/sandbox pattern for a better code
structure and a better maintainability