break-down: replace `function() {...}` by nested `function _downloadApp() {...}`.