Check String Against Regex Javascript Example File