fixes for debounce so that it is used correctly #793

Ignore the javascript and concentrate on the coffee. Debounce is really called now. Decreased the time to 5ms and it seems stable.