Adding packaged version when publishing to npm.
tests: add default trim to the text() helper

Closes #173
fix: gracefully handle browsers that don't support svg elements

Closes #181
tests: add test to samples - infrastructure