Fix parens in if statement

(oops, haven't written js in a while :stuck_out_tongue_closed_eyes:)