updated JavaScripts to remove DataTable error