Use of Grunt + JsHint
Fixed jshint warnings
Use of a debug tool to replace 'console.log' output
Extracted 'module.exports' as a variable
Code reorganized