Javascript Array And Array Operations Matlab Web