Fix UMD to work with AMD and script loading

The require in the body was causing escope to break when used in an AMD or browser environment. I've removed it and instead pass in estraverse from the different loaders.