convert-array solution
debounce solution ...somewhat