Moving windCtrl to demo.js