File downloader script, can be called on onclick events for any DOM element.