Working r.js optimization task.