JavaScript runtime error: Syntax error

JavaScript runtime error: Syntax error

I am using Jquery to delete  a file but getting 

Unhandled exception at line 23, column 13751 in http://localhost/Scripts/jquery-1.10.2.min.js

0x800a03ea - JavaScript runtime error: Syntax error whenever this this line get hit

 $('#TestTable').html(data);

Below is whole code

  1. $(document).ready(function () {

  2.     $('.delete').attr('href', 'javascript://');
  3.         $('.delete').click(function () {
  4.             $dialog.data('id', $(this).attr('id')).data('contId', $(this).attr('contId')).dialog("open");

  5.         });

  6.         var $dialog = $('<div/>')
  7.         .html("Warning: This will remove the selected file.Only remove this file if you intend not to use it again.<br/><br/>Do you wish to continue?")
  8.         .dialog({
  9.             autoOpen: false,
  10.             resizable: false,
  11.             height: 250,
  12.             modal: true,
  13.             title: 'Remove file',
  14.             buttons: [
  15.                         {
  16.                             text: "Continue",
  17.                             id: "continuebtn",
  18.                             click: function () {
  19.                                 var _id = $(this).data('id');
  20.                                 var _contId = $(this).data('contId');

  21.                                 var parameters = { id: _id, contId: _contId };
  22.                                 $.ajax({
  23.                                     url: "/AdminFiles",
  24.                                     type: "GET",
  25.                                     data: parameters,
  26.                                     success: function (data, textStatus, jqXHR) {
  27.                                         $('#TestTable').html(data); ------> Error here
  28.                                         alert("testing delete");
  29.                                          
  30.                                         $('#contId').val("");
  31.                                         alert("testing delete");
  32.                                     }
  33.                                 });
  34.                                 $(this).dialog('close');
  35.                             }
  36.                         },
  37.                         {
  38.                             text: "Cancel",
  39.                             id: "cancelbtn",
  40.                             click: function () {
  41.                                 $(this).dialog("close");
  42.                             }
  43.                         }]
  44.         });
  45.     });