these libraries look promising for making CSS more manageable:

http://code.google.com/p/css3-mediaqueries-js/
http://lesscss.org/

I think I came across less being used with other javascript library... backbone.js.