Add check on existence of dom element
Fix existence error and exit above max
Change namespace to new system
Swap pseudocode out for real clean logic
Make various small bugfixes and error checks
Make small bugfixes, add comments and general cleanup
Add error prevention for running code outside of WP

Check to see if a WP function exists in the global space before
trying to register actions and hooks, so that we can call this
file from outside WP to test it in a basic way.
Reorder and un-nest syncClubs fn