Forgotten $ on depth variable

A $ was forgotten on the depth variable. This was causing a ```<div>``` to not
be closed which was causing w3 validation to fail all over the place.