define(['mac/roman'], function(macintoshRoman) {

  'use strict';
  
  return function(item) {
    return item.getBytes().then(function(bytes) {
      var text = macintoshRoman(bytes, 0, bytes.length);
      debugger;
    });
  };

});

define(['mac/roman'], function(macintoshRoman) {

  'use strict';
  
  return function(resource) {
  
    var text = macintoshRoman(resource.data, 0, resource.data.length);
    debugger;
  
  };

});

--- 
+++ 
@@ -2,11 +2,11 @@
 
   'use strict';
   
-  return function(resource) {
-  
-    var text = macintoshRoman(resource.data, 0, resource.data.length);
-    debugger;
-  
+  return function(item) {
+    return item.getBytes().then(function(bytes) {
+      var text = macintoshRoman(bytes, 0, bytes.length);
+      debugger;
+    });
   };
 
 });
Change ATXT to new loader format