fixing tabbing and other things jshint hollered about