I recommend printing the whole args object to console like this:
console.log("args", args);
This will let you inspect the content using the browser developer tools.
BTW, this line:
console.log(args.e.id);
prints the function source. You need to change it to this to print the id:
console.log(args.e.id());