Complete Plugin Rewrite with Destroy function

Destroy function will be useful in knockout bindings.