Fix JSHint warnings about if-else braces