Using my standard jscs.json
Using consistent quotes.
Use == null, instead of == undefined, to be explicit about the comparison
Fix indentation.
Don't conflate assignment with expressions.