Cleaned up code
Cleaned up code

Refactor the code so the ajax call for helpdata is on the outside and
can be called by other functions. Also added a bit of documentation.

interfaceware/iguana-web-apps,interfaceware/iguana-web-apps