Issue #1684868 by nod_: JSHint simpletest.

PR for http://drupal.org/node/1684868