Update ball.js