Makes AMD modules loadable through with node’s require by adding a global define function