An extended Math library for Javascript