Minor fixes to satisfy jshint