fix dataTable JavaScript issue and integrate with AngularJS