Tutorial on robust arithmetic in JavaScript