Fixed jslint issue

Silly {} missing on if statements