MDL-40829 course heading: change variable name for tag attribute and removed unused global variable