How about write an application specifically designed to execute code that you give it in a safe environment. Then you only have to make that application crossplatform and everyone can target it instead. People write for the browser because it is a sandbox, store front, package manager, UI kit all rolled into one. If some smart cookie decides to forget about the web and build to that spec they could come up with a better alternative.