Add destroy() method at client.js