Javascript If String Includes Substring Mysql