fixed goal distribution/frequency js mixup