If you guys have no paper agreement regarding equity, then you can forget about it. If you do have one then I think your proposition is good. Again that depends on the type of the deal.
The question remains whether he can simply take the app & create a new company since technically he paid for the app and the contract with programmers is only between Jim and programmers