added media definition to include required javascript