HTML5 Canvas Collision Detection Test