Fix and refactor JS for validating numscale questions
Add javascript test
[Issue2485] Error when editing copied numerical question