Support for card-specific styling. Improved javascript while I was at it.