22-year-old voted mayor of Mass. town