modify javascript regexes for ctag