Deleted table footers/headers for applications (Error with JavaScript)