Mysql Function Split String Javascript