math pbject in javascript