Update popup-imagemanager.js

Bugfix in mediabrowser, fixing the javascript issue so you can select directories now!