anchor.diff:      view.onClick.listen((Event e) {
           print("toggling");
           if(parts.children.isEmpty) {
  -            fillParts(dir, files, parts);
  +            fillParts(doll, dir, files, parts);
           }
           if(parts.style.display == "inline-block") {
               view.text = "Show Parts";
  
positive.code: import 'dart:html';
  
  import 'package:DollLibCorrect/DollRenderer.dart';
  
  
  List<String> extensions = <String>[
  
negative.code:     });
  }
  
  Future<Null> fillParts(Doll doll ,String dir, List<String> files, DivElement parts) async {
      for(String file in files) {
          String fileName = "$dir$file";
          print("trying out $fileName");
          DivElement container = new DivElement();
          container.style.display = "inline-block";
          DivElement label = new DivElement()..text = "$fileName";
          container.append(label);
          CanvasElement visible = new CanvasElement(width:150,height:150);
          container.append(visible);
          parts.append(container);
          ImageElement img = new ImageElement();
          img.crossOrigin = "Anonymous";
          //can't use pl's loader cuz it doesn't set cross origin
          img.src = fileName;
          img.onLoad.listen((Event e) {
              CanvasElement temp = new CanvasElement(
                  width: doll.width, height: doll.height);
              temp.context2D.drawImage(img, 0, 0);
              Renderer.swapPalette(temp, doll.paletteSource, doll.palette);
              visible.context2D.drawImageScaled(temp, 0, 0, 150, 150);
          });
  
          img.onError.listen((Event e) {
              DivElement error = new DivElement()..text = "Error loading part $e";
              container.append(error);
          });
      }
  }
  
  