small fix for ball.js