I open sourced my "toy" version of JavaScript physics engine just few days ago too. It's not really for serious work, but may be (hopefully) simple and good enough for beginning programmers to learn one way of starting such a project.
<a href="https://github.com/fuzzthink/SPE.js" rel="nofollow">https://github.com/fuzzthink/SPE.js</a>