refactor collision function pattern
option collide fn
fix defaultFn
add root
fix collision assertion
refactor
Merge branch 'collisions'
add jsdom
add jsdom compability
Merge branch 'jsdom'