"removing his coat" modifies "Jack" because Jack is the person who is removing his coat. The only other noun in the sentence that "removing his coat" might modify is "river", but it is certainly not the river which is removing his coat. "removing his coat" goes with "Jack", so we say that it modifies "Jack".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.