Update `lib/generator.js`
Add IIFE to `index.js`