docs(globaltocjs): added more function documentation