Interim Commit - fixed bug in mathExtras.js - untested