Typescript Variable Inside Regexp Javascript Example File