Javascript successor