Mysql Find Substring Javascript Example