Updated utils.js to latest version