backed out changes to utils.js

(in PR #592 instead)