Matrix is simple array in javascript.