REV: check code with JSLint

Usage:

$ npm run-script lintcheck

After some errors are found by JSLint, npm will also report errors. This is
normal and not an error.

Change-Id: Ibda2611803a7d35c3c7671e1c7c7f926df21b3d3