Convert to dojo AMD