Just put `scope` before `gen` in the parameter list. We're not loading escodegen with requirejs in the browser (just doing a script include) because there was an issue with it at one point. The new version of escodegen might have fixed this by now.