Refactor tableLoader, add comments re: AJAX