You must have enabled Native Client in Chrome's about:flags! Check the output of the console. Then run the following statements.
NaCl is async-only. If you print the following line entirely, the constraints will not be solved when printing the array.
After a browser loop, the constraints are solved and these have the right values. You can go on and change parts of a or b, or replace this.a and this.b with new points. The constraints will be re-satisfied.