Trap Generator in Generator.js