Modified identity function in matrix.js to return this