Unescaped forward slash in regular expression yielded an "unclosed character class" JavaScript parsing error.