Add test files to jshinting, fix an immediately occurring issue