Use js to get download id