Simplify exporting window / amd / cjs.