Fixed AngularJS DataTables directive and ensured it updates when plain JS data is changed