AMD ready (requireJS fully loaded), all working same as before but modular