Changed order of define/exports/window.