extract onValueChanged, better-dom 1.6.1 updates