Applying suggestions from jshint.