Moved app initialization into comment-genius.js.

At the same time, moved require import into the demo.