Josephson junctions and circle maps