Fixes #1 by moving HTML form parsing to inner class that gets reinstantiated whenever a document is parsed