tweaked define module to play a bit nicer with requirejs
Merge pull request #609 from bentedder/master

tweaked define module to play a bit nicer with requirejs