Changed navigation to be a dropdown box

This allows the number of links to grow without taking up screen space
Separated json and html data generation, fixed bug in generating stats summary