JI challenges law allowing indirectly elected mayor