override installer using document.location instead