Get rid of global wait/done/load and the exports global
Configure RequireJS when it is available