Put timer to AJAX