Jquery and ajax work for immediate correction