Move code to update panel context menu into downloadsActions.js
(#24)