JavaScript based physics libraries make it possible for you to perform collision detection, rigid body and blob simulations. Sometimes they integrate with some other engine.