It's a self invoking anonymous function or a function expression. It prevents you from creating variables in the global scope. You don't introduce a global variable for callingIt also calls the function right away.
function someFunc() { // creates a global variable } var someFunc = function () { // creates a global variable } (function(){ // creates an anonymous function and // runs it without assigning it to a global variable })();