Doing jquery $.data the proper way.
Making variables! For jquery datatables processing.
Declare variables so scope isn't accidentally messed with.
Refactored js datatable creation code.