complex numbers code bricks for JavaScript