Clean up generated markup.

 * Remove unneeded nested element from live markup.
 * Update code that scrolls to selected element to handle variable height rows.