Dynamically generate the r.js modules