optimized css() and allows customizing clear and close button text