fix remaining errors reported by jshint.com