shift to unobtrusive JavaScript
Ticket
+status
+priority
+tag
+commit
+solution
I'm sure i don't get all of this, but it sounds like it would clean up the HTML some, and from my inexpert read might, for example, enable editing (via a link to /card/edit) even if the browser doesn't do JavaScript or it's turned off.
http://www.alistapart.com/articles/behavioralseparation
http://www.onlinetools.org/articles/unobtrusivejavascript/