Javascript String Starts With Substring Mysql