preparation for r.js optimizing