support for umd/amdWeb

Much like @airportyh's PR #3 but a little less invasive (uses estraverse instead).