I've seen two ways...the first makes most sense to me.
Self execution parentheses are placed directly after the function brackets. All is included between parentheses to make it a function expression. Reference here
( function () {
// ... all vars and functions are in this scope only
// still maintains access to all globals
} () );
and this style, where self-execution parentheses are place after the parentheses which create the function expression. Reference here
var Var = ( function ( window, undefined )
{
} )();
I'm not sure if the var makes a difference in the syntax...?