fix jshint errors, 10 warning left, but largely cleaned up.