Javascript String Starts With Substring Mysql Command Not Working