Using underscore.js, this simple script compiles the document's css styles into one big JSON object, so you can search for an attribute of a style, returning either a string or number.