JavaScript statistics library