exploring for past few years to understand a js game engine, and integrate the cool gaming features in the regular application. so the final piece I am convinced right now is with matter js. tried some sample from demos & documentation (the links below)
http://physics-2d-js.immanuel.co/mat4/
http://physics-2d-js.immanuel.co/mat2/