cleaning up bugs in roller.js