fix invite-a-friend missing $window dependency