Add type attribute to audio/video tag