CommonJS and AMD compatibility.