JavaScript based server/client stack