Refined media_detail.js