Update javascript.snippets

Add event listener snippet