Fixed unwrapping and javascript anchor handling
Cleaning up and improving unwrapDescendants

Remove nominal anchors, cleaner for loop