Fixed an issue revealed by running jshint