jQuery dialog tidy up code in webtrees1.5.1.js

Rationalize code around the modal dialog functionality. Help dialog
loads data from help_text.php by jQuery.getJSON thus cutting calls from
two to one.
work towards passing Jslint
More Javascript stuff