Fix issue #48

Wrap `define` in a self-invoked function