Please factor this out into main.js like the other demos.