Math in JavaScript, using Jmat.js
blog.mathharbor.com