Getting latest direct download url with ajax