magical inversion of control for nodejs and the browser