refactor(globaltocjs): remove dead documentation and rename functions