fix jsHint errors

fix jsHint errors in `statistic.js`
update to version 0.4.0