Add chi-squared test for javascript's random number generator.