Default `target` to parentNode

Wait for `attached` callback to get the right context for parentNode.

Refactor demo to be more descriptive.

Fixes #4 If target is not provided, default to parentNode