updated media scripts

updated media scripts to support new 3.5 media manager