Slightly optimize: use "progress" variable instead of "this.progress"
Simplify: document.defaultView.location.href -> document.documentURI