Eloquent Javascript: Recursion isEven