Removed dependency on Array.map and Array.forEach when under Dojo