BUG FIX: r.js would optimize but resulted in not loading underscore in time for main module require() calls. appeared to be a problem in app.js properties: baseUrl, paths. change it completely.