Javascript Example Using Regex To Compare If True