added criteria.js and another util method. Build not working.