parsing onChange attribute on setting viewValue allows for easier on-change callback invocation

very minor change, but with pleasing results