fixed JS error with interpolation on matches