Reconstructing variate()
Add test.js and test.html for testing.
Change readme