Added a reset button and cleaned somethings up so that they could be shared across docbook and docbook-translation scripts