amdefine workaround for Dojo layers