multi-precision arithmetic code bricks for JavaScript