A javascript canvas with colliding circles