fix for modal window positioning issues.
fix for js redirect when not using location.