Removed unused function.
Added support for Custom Elements. Fixes #3.