Removing self-invoking annonymous function