Change to use pseudoinverse and numericjs.
Add performance.js.