Javascript Create New Empty Array Matlab Onramp