Javascript String Has Substring