js: standard deviation