Included error logging on template rendering via AJAX