Refactor invites js into functions and include those functions on the
refreshInvites that is called on member add/delete
Add google analytics