A billiard ball physics simulator based on three.js