Adding a collision js