In-browser physical accurate simulation of 2D robots