A javascript coding pattern supporting both AMD and CommonJS.