Adding DOMContentLoaded support. Resolves #9