point counting js