copied popular yeoman webapp index.js