jslint files in tests/* too

... and fix the various warings