Clean up of docs UI + made it work with History.js