Template checks ajax request