Restored the toc functionality
Fixed javascript width and tested on Firefox/Chrome