Adding autoplay attribute for media