Manipulate the DOM only when it is ready

See http://requirejs.org/docs/api.html#pageload
Merge pull request #11 from manuq/domready2

Manipulate the DOM only when it is ready