more sophisticated simplification algorithm based in the logical structure of the DOM, with no menus
minor change