server code tidy

fixed potential issues with annonymous functions in a for loop in
mailchimp list creation.