Update generalized.js

fix for "snack for stats"