Refactor and clean up render() and callback functions

* Move all CSS to the stylesheet instead of modifying it in JS
* Generalize the code to remove the need for separate callbacks
* Store jQuery collection of table rows so we don't need to call it more than once
* Clean up code style (spacing, etc)