sprinkling with a bit of jshint