add JSDoc comments; update template files; incude .jshintrc into checked
files by JSHint