update demo code to match js version

replaced 'start', 'stop' with the new  'windowOn', 'windowOff'