Sync registry/utils.js with neuviz/frontend/utils.js