download request with ajax implementation