browserify & collision detection