syntax changes to satisfy jshint