created matrix js with some specs