Javascript If String Includes Substring In Mysql