heres some js 2d physics i did one day when i was bored :3
i may update this if i ever feel like improving this and making a game/gameengine out of this