Update Math.js

More progress, add some of the lower level math.
I'm new to JavaScript, so there are probably syntax errors
-Adam