consensus seems that there should be a space before the parenthesis and after the `if`:

https://github.com/airbnb/javascript#blocks
https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml?showone=Function_Declarations_Within_Blocks#Function_Declarations_Within_Blocks
and Crockford himself, http://javascript.crockford.com/code.html