Added destroy method to js

Allowing user to invoke public function to destroy the instance and reverting back to original markup