Basic JavaScript exercise to create a div with a button and attach an event listener