move downloads page javascript to separate window