Is this a copy of lib/utils.js from the CE, a diversion from that, or an improvement?