All JS files bar tests now pass jshint
API  tests under jshint
Unit  tests under jshint
Midway  tests under jshint
Everything now under jshint