Javascript String Starts With Substring Mysql Commands