improve unstyled media & separate script