CSS to javascript object parser