Javascript statistics library