JS fixes and documentation updates.