improve timestamp and reset timeout counter for ajax request