Behold my badass DOM flattener https://github.com/boutell/jot/issues/10