HTML: Refactorings to remote download feature