Add license
Fix var name typo
Add .jshintrc and jshint-based coding style fixes