Matrix multiplication trainer in pure JavaScript/HTML/CSS