Numpy Create New Array Javascript