Triggering custom events

There is a small fix for an include in `example/index.html`, but this PR is mostly about the addition of the ability to have the library trigger a custom event in response to element insertions.

Lemme know your thoughts.