Attach events in the main block

requirejs is async so the load event handler was never fired.