refactor page-specific-js (dataTables)