Issue #2298665 by nod_: Fixed Remove dead code in form.js.