Javascript If String Includes Substring Mysql Commands