Render Using Classes

Changed the render method, following the practice of modifying the DOM as little as possible, preferring to change state with classes.