Error removing child element
<p>I have a bunch of input boxes and a button at the last input box to add more input boxes which. I have a problem removing the button when the add button is clicked.</p>

<p><a href="http://gist.github.com/621417" rel="nofollow">http://gist.github.com/621417</a></p>

<p>I am getting this error on trying to removing a child element.</p>

<p><strong>Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.removeChild]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame</strong> </p>
