In processing/processing.js you can just load your images into an array and display them with a offset in the z axis. You might find that using peasycam will make it easier to see what is going on in 3d.
PImage[] imageArr; // load your images in setup()
float zOffset = 10;
void draw() {
for (int i = 0; i < imageArr.length; i++) {
float zVal = zOffset * float(i) - float(imageArr.length)*zOffset/2;
pushMatrix();
translate(0,0,zVal);
imageMode(CENTER);
image(imageArr[i], 0, 0);
popMatrix;
}
}
If you wanted to do something more like a voxel display of the image data, you could read the image color information with PImage.pixels[] and display translucent a box() of the same color.
I agree with Mike in the comments. If you want to do the same in processing.js, you must only use built in methods/libraries unless you can find a javascript equivalent.
If I am way off, maybe posting an image of what you are going for would help to clarify your question.