Fixing the deprecated calls to .curCSS()