Fixed warnings reported by jshint