Comments in js, a few bug fixes

Added descriptions to most (all?) functions. Fixed bug where clicking
link in sidebar made sidebar disappear. Fixed bug with fitText where if
sidebar was open upon window resize text became giant.
Updated README!