Adding better AMD support for r.js.