Bouncing balls simulation (HTML5 canvas demo)