Bug fixes.

Fixed a javascript bug that wasn't updating the name of the material in
the plots of the appendix tables. Also fixed a coloring bug, since the
sidebar buttons were merged to the top, the 'active' class assignments
had to be rearranged.