Support RequireJS and NodeJS.