Implement code for the click event

This will create a fieldset with textboxes for each extracted category
Cleanup more

* If no endpoint is configured, do not even extract data
* On-click event now prepends data to the body tag, instead of appending it to the end
Merge pull request #1 from kbandla/master

Implement code for the click event.