HTML5 game of bouncing balls