Dark brown jelly at 40 weeks pregnant

Having my first baby and I'm 40 weeks and 4 days pregnant and today at 10 to 9 this morning I started losing like a brown coloured jelly and throughout the day it's got more and more now it's quite a lot and it's now more of a dark brown jelly is this the mucus plug?? I am getting lower back ache and my stomach keeps tightening.