Originally Posted by Lucas Azevedo
Jshint it's giving me this errors ...
None of those "errors" are important.
You could fix all of them, but they won't change how the code works.
I have no idea why you get multiple <input>s added when you only invoke the code one time.