Use vanilla JS for onchange events (#842)