added $destroy to codepenDirective