Made sure wp loads before wp-media-modal.js