Surface addCSSRules function