Ok I got it working for anyone who needs this :)
[Original Statement/Question]
Here is and example of what I\'m trying to do (But on clic
This probably is a silly idea - but if you're stuck with the html (that is you can't edit it), but you do have the ability to apply any javascript on the page - why not simply reading the data that the table contains to memory (that is convert it to some js data structure), then just remove the original table using javascript and then using it create any html that suits your needs.
That probably will be simpler than table hacking.