A very minimal collision detection library for JavaScript