I have an image as the background of my application The id of the image is "bg". I'm trying to see if the user has clicked on the image, and if so where was the click.

I found this code on the internet, but it doesn't seem to be working for me

MyAssistant.prototype.setup = function() {
    Mojo.Event.listen(this.controller.get('bg'), Mojo.Event.tap, this.handleTap.bind(this));

MyAssistant.prototype.handleTap = function(event) { 
    Mojo.Log.info("tap down at x: " + event.down.x + " y: " + event.down.y);
Is there something that I'm doing wrong?