finished util.js module