mv onchange into visualization.js