Access Object Within Array Javascript Iterations In Matlab