chamando a função anônima enquanto a declarava

var step = (function(){
    // this code is executed immediately, 
    // the return value is assigned to `step` 
})();
Parotay