This is kind of cheating, but when coming upon this problem, I just created a workaround. At the bottom of my page I created a dummy form with ACTION="post" and METHOD="page.php". Make page.php the location you wanted to use in your javascript, then use a document.form.submit(); in place of the window.location. This carries the referer over correctly.
By the way, Mac IE carriers the referer over correctly via javascript, its the pc that wasn't programmed correctly.