use classList.add('glyphicon-play') and classList.remove('glyphicon-play') instead.