minor utility.js edits