There should indeed be spaces around the condition of an if statement per jQuery's style guide (thanks for adding that). However I'd recommend either leaving the absence of whitespace as-is or adding it on both sides. Now there's a few with no space on one side and a space on the other side :)