Polish up jshint

This adds some jshint configuration specific to our setup, and it
updates our code to make jshint a little bit happier.