Add destroy method & hide input via javascript

I've had some problems and conflicts by hiding the original input via CSS, so I went for javascript.
Also I needed a 'destroy' method to revert everything to the original state, which I also implemented.