jshint

JSHint ‘x’ is an implied global variable