server/client working but js user still has races