Add brackets around if statement.

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