finalised mathTest.js

done with mathTest.js, works now!