Adding New Element In Array Javascript Length Function In Matlab