A numerically stable way to add numbers in Javascript