Hello I'm trying to make a Point & Click adventure game so I have multiple boxes derived from a PNG image file like so:

When the player clicks on a particular box, a particular event should happen. Being a PNG the image can later be made transparent. In any case, here is the code I have so far:
So far I've tried adding an event listener to click on an individual box like so:
But it doesn't seem to be quite so easy.

When the player clicks on a particular box, a particular event should happen. Being a PNG the image can later be made transparent. In any case, here is the code I have so far:
Code:
class Layer {
constructor(game, width, height, image) {
this.game = game;
this.width = width;
this.height = height;
this.image = image;
this.x = 0;
this.y = 0;
}
update() {
}
draw(context) {
context.drawImage(this.image, this.x, this.y, this.width, this.height);
}
}
export class Background {
constructor(game) {
this.game = game;
this.width = 640;
this.height = 480;
this.backgroundImage = document.getElementById('background');
this.eventRect = document.getElementById('eventRect');
this.background = new Layer(this.game, this.width, this.height, this.backgroundImage);
this.ladder = new Layer(this.game, 80, 360, this.eventRect);
this.ladder.x = 0;
this.ladder.y = 100;
this.steering = new Layer(this.game, 120, 200, this.eventRect);
this.steering.x = 230;
this.steering.y = 175;
this.propellor = new Layer(this.game, 200, 200, this.eventRect);
this.propellor.x = 450;
this.propellor.y = 300;
this.outAtSea = new Layer(this.game, 300, 200, this.eventRect);
this.outAtSea.x = 350;
this.outAtSea.y = 100;
this.atTheShip = new Layer(this.game, 275, 175, this.eventRect);
this.atTheShip.x = 80;
this.atTheShip.y = 0;
this.backgroundLayers = [this.background, this.ladder,
this.steering, this.propellor, this.outAtSea, this.atTheShip];
}
So far I've tried adding an event listener to click on an individual box like so:
Code:
//this.ladder.addEventListener('click', function (e) {
//console.log("ladder clicked");
//});
But it doesn't seem to be quite so easy.