Small modifications on bubbles.js