Add braces around if statement.

Running jshint on this file returned an error, adding braces fixed it. Please add braces around if statements!!! :)