Add onto this game with more JS game knowledge at https://chriscourses.com/game-course
There's still a bit of jitter when transmitting player positions to other connected players. Here we'll use a different form of interpolation to smooth out player movements and keep our collision detection code relatively intact.