Added quite strict ".jshintrc" files and altered the "Gruntfile.js" and modified the code accordingly; additionally also did some code beatifications.