fixed node wrapper, support for amd and plain js