added file download via javascript