One line if conditionals in javascript 

I pretty frequently use the shorthand syntax for short if conditionals like

```javascript
if (foo) bar();
```

These need braces when done on multiple lines

```javascript
if (foo) {
  bar();
}
```

Granted, not everyone likes this syntax - but not everyone has to use it :)

Seems like you have the one-line-if join function twice.