fixing jshint violations W069: using dot notation