This javascript for web and mobile can be found on official website.
The development team tell us about the features of this tool:
- Rigid bodies
 - Compound bodies
 - Composite bodies
 - Concave and convex hulls
 - Physical properties (mass, area, density etc.)
 - Restitution (elastic and inelastic collisions)
 - Collisions (broad-phase, mid-phase and narrow-phase)
 - Stable stacking and resting
 - Conservation of momentum
 - Friction and resistance
 - Events
 - Constraints
 - Gravity
 - Sleeping and static bodies
 - Plugins
 - Rounded corners (chamfering)
 - Views (translate, zoom)
 - Collision queries (raycasting, region tests)
 - Time scaling (slow-mo, speed-up)
 - Canvas renderer (supports vectors and textures)
 - MatterTools for creating, testing and debugging worlds
 - World state serialisation (requires resurrect.js)
 - Cross-browser and Node.js support (Chrome, Firefox, Safari, IE8+)
 - Mobile-compatible (touch, responsive)
 - An original JavaScript physics implementation (not a port)
 
How can be used ?
First, get a stable release and include the script in your web page and add the matter engine objects and features, see this example: