Display one of the two notifications at a time
Fix jshint error