fixed jshint duplicate error