Added a JavaScript gist

Basic event listener