Two changes:

1. Use an html textarea.
2. Don't bother trying to create a paste again if it already exists.