Update condition.js