autoDownload script - nice way to run download through javascript