Regex uses exec, not match, in javascript...