Javascript Use Variable In Regex Pattern Matching