Has anybody taken a shot at building a js server stack that can intelligently detect the capabilities of the user-agent, and determine what code can be executed client-side and what code can be executed on the server?
Interestingly enough, server-side Javascript is actually quite old. I remember one of the very first web apps I worked with was in SSJS (aka Server-Side JavaScript), on the Netscape Enterprise Server.