Move all download permissions inline js to meta-boxes.js