A javascript app that simulates the collision of 2d balls