I often see the following code:
(function () { // init part })();
but I never could get my head around how it works. I find the last brac
Self invoking anonymous function (SIAF)
Self-invoking functions runs instantly, even if DOM isn't completely ready.
jQuery document.ready vs self calling anonymous function