Vector and Matrix math calculators in JavaScript