Fixing order of operations such that libraries do not define AMD modules.