Simple code to download file using ajax