Simple css parser in javascript