Initialization also in a self-invoking anonymous function