Javascript fix bubbles