Meet calc2.js, a small crappy math library to cover some math stuff for my calculator..
var calc = new Calculator();
console.log(
calc.eval("2+6*4")
);
// evaluates math expressions, without the security risk
// expected output: 26
console.log(
calc.tetra(2,3)
);
// tetration, comes after exponentation: does 2^^3
// expected output: 134217728