I figured out how to do the redirect without exposing my ugly dropbox pulic url!
Removed superfluous 'window'