Improved cross-browser support in collision.html