adding lots of functions from javascript Math library