initial entry of code from datatables.net version