Simple javascript file downloader