add jshint flags; small cleanup