jshint experimentation

WIP

Fixes issue #2008.