Common index js for delete ajax functionality