Update script.js

added break; in figthcheckinput function