Added more functions to JSMathHelper