Grunt & some minor changes for jshint

* integrate Grunt
* remove unused var
* replace 'equal' (==) with 'strict equal' (===)
* replace tabs with white spaces (source code was mixed)
* better indenting
* add minified version (by Grunt and uglify)