utils.js: replace wrong, commented-out code with explanation