adding bars to train.js