Javascript Use Variable Inside Regex Pattern Matching