minor bugfix, code formatting, some cleanup
update jshint config template