exporting generator instead of app.js