Check If A String Has A Substring Javascript