Annotated math utilities for JavaScript (MIT)