Cleaning inline js
Implementing history for stats
Adding menu