cleaned-up amd, events and dojo require