This is why we have copyleft licenses. You want your code to stay open and improvements being open? GPL it. Is it working on a server? AGPL it.
This is why I license my code (A)GPL. I write it for myself and for other potential users, and I care about user freedom more than developer freedom.