replace onchange to scripts.js