Removing any text inputs from the DOM after this code applied placeholder labels to them resulted in errors every time the window was resized, because it left behind phantom window.resize event handlers that referenced objects which were no longer valid. Fixed this, to allow better use of this shim with pages using dynamic HTML modifications.
Merge pull request #10 from trajanmcgill/master

Fix to handle removal of text inputs without errors.