Update criteria.js

simplified push2args method