matrices code bricks for JavaScript