add new media upload javascript for custom fields