BA - added Collision detection

added new js file