fix jshint errors

Fix a few jshint complaints.