Update utils.js

get key names from XRegExp capture group names