update for util.js running on express.js