improve copy to clipboard ref Cakebox/Cakebox-light#48
Clean code