$.jCanvas.defaults.fromCenter = false; // Sets default draw start point to be from upper left corner
var $comicCanvas = $('#comic-canvas'); // <canvas id="comic-canvas" height="590" width="767">

// -------- UI BUTTON SETUP --------

function layoutUIButtons(src, x, y) {
  var imgNames = [
    'delete-button', 
    'text-button', 
    'bring-to-front'
  ];

  var y = 10;

  for (var i = 0; i < sources.length; i++) {
    var name = sources[i];
    var src = 'img/buttons/' + name + '.png';
    
    // Get image width
    var img = new Image();
    img.src = src;

    // Set x to image width + 10, away from right edge
    var x = $comicCanvas.width() - 10 - img.width;

    $comicCanvas.addLayer({
      type: 'image',
      name: name,
      source: src,
      groups: ['ui-buttons'],
      x: x, y: y,
      opacity: 0,
      draggable: false
    });

    // Increment y for next button draw
    y += (img.height + 10);
  }

  $comicCanvas.drawLayers();
};

// -------- CLICK HANDLERS --------

function bringSelectedLayersToFront() {
  // TODO
  console.log('Brought selected layers to front');
}

function addTextLayer(text) {
  // TODO
  console.log('Added text layer');
}

function deleteSelectedLayers() {
  //Removes all layers from canvas in the 'selected' group and redraws layers
  $comicCanvas.removeLayerGroup('selected')
  // Redraws layers (required on layer remove, option most other places. Test necessity before altering)
  .drawLayers();
}

// -------- RUN SCRIPT --------

$(document).ready(function() {
  
  layoutUIButtons();
  
  // Add click handlers
  $comicCanvas.setLayer('delete-button', {
    click: function(layer) {
      deleteSelectedLayers();
    }
  });

  $comicCanvas.setLayer('text-button', {
    click: function(layer) {
      addTextLayer();
    }
  });

  $comicCanvas.setLayer('bring-to-front', {
    click: function(layer) {
      bringSelectedLayersToFront();
    }
  })

});
@@ -390,21 +390,22 @@
  0; i %3C 
-sourc
+imgNam
 es.lengt
@@ -429,21 +429,22 @@
  name = 
-sourc
+imgNam
 es%5Bi%5D;%0A 
@@ -1531,32 +1531,8 @@
 %0A  %0A
-  layoutUIButtons();%0A  %0A
   //
@@ -1890,13 +1890,36 @@
   %7D%0A  %7D)
+;%0A%0A  layoutUIButtons();
 %0A%0A%7D);

Change 'sources' to 'imgNames'