AMD-ify

![window-or-loader.jpg](http://ruben.verborgh.org/images/blog/window-or-loader.jpg)