Minor tweaks courtesy jshint