Introduce JSHint

Remove unused variables in order to pass.

@fb55 I made a best-guess as to the options to set. Let me know if there's any changes you'd like to see.