Mucus plug?

Ladies i am 40 weeks pregnant & i had gooey discharge before this it wad clear a few days ago. Yesterday and todaybim spotting brown? Is this mucus plug because it is gooey also?

Also i am having light cramps lower back but its not bad or painful