Set up example, and clean up index.js.