Update jshint/jscs.
Make JShint pass.
Fix undefined checks.