FIX: document.location => window.location