Fix ajax setInterval problem