Update questions.js

Correction made in "checkCriteria" function