C Convert String To Character Array Javascript