Use DOMContentLoaded instead of window onload. Helps #102