Manipulate the DOM only when it is ready

See http://requirejs.org/docs/api.html#pageload