Cache rendered HTML
Remove unnecessary check from removeAttr
Cache append class value