Listen to events in the AMD callback, not during load time