some ball.js stuff