created initial matrix in js