JStat: a JavaScript statistical library