ajax works all the time