Javascript Test If String Includes Substring In Mysql