some minor style changes; jshint