Fix #569

@garyb Could you please review this? Sort of surprising that this lasted so long, but binary operators in JS are associated left-to-right, not right-to-left.