Use mersenne twister in Sample.js
Fix histogram scaling.
Merge branch 'controls' into gh-pages
grunt