Use DOM ready to initialize stuff.
Merge pull request #40 from MattiasBuelens/dom-ready

Use DOM ready to initialize stuff.