assorted fixes on jshint