Hey there,
You need to put this code inside the events.js file in the backend.
Check out this post that shows how to create the events.js code file:
Also, as Dean mentioned, the returned event object does not include the product description, so you might want to remove that before testing it out.