added a collision js