Delete Last Array Javascript Join Method In C