Added snippet and test for dynamically adding a custom element and setting an attribute of it.
updated snippet comments.
Put all comments together.
Merge pull request #35 from kroikie/master

Snippet demonstrating dynamically adding a custom element and setting an attribute of it.