Issue #1684810 by nod_: JSHint states.js.
Merge pull request #255 from Twinmat/JSHstates

Issue #1684810 by nod_: JSHint states.js.