dojo promises within a promise callback