Use Regex.test instead of String.match in WCF.Message.js