Update bubbles.js

move some variables to end of line7.