Further modularized the code: Seperated anonymous functional definition from RequireJS config