Code review fix 005. Add cache to the matrix.js