I'd change this to `$btn =$('<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>') `

that way you can just append the class below