cleaned up errors reported by jshint