Change url - removed setTimeout if wait==0