Fix scripts on embedded media