modified downloadFile javascript method to add context to all links (so terms of use can stay in proper context)