Overhaul Javascript documentation.