JavaScript dimension-independent geometric kernel based on simplicial complex