math code bricks for JavaScript