tweaked define module to play a bit nicer with requirejs