Fix variable definition errors found by jshint

This includes an update to the test runners, which now use a separate jshint config with expanded globals for tests.

@mwhite 
[16:28:57] Clayton Sims: Controls need either a ref or a bind attribute to be well formed
fyi i think this means we can remove this, but i'll just merge and let you update