Update ui.js

- Changed parent dependency to a node object instead of jQuery
--- also fixed wrapper object
- Fixed render object to append to parent correctly
- Added nodesToRender array to nodeManager to differentiate nodes from nodes that still need to be inserted into the DOM
--- Edited render functions accordingly
- fixes to drawTable, using parent nodes instead of jQuery objects
- Fixed query from sending on page load