Javascript String Starts With Substring Mysql Command Not Found