Issue #39: Wrap script into self-invoking anonymous function