fiddling with script

trying to get it to recognise h1-h6 parent