fixes jshint error (braces after if statement)