Moved Datatables delay function