You are supposed to play online against other players, but many of these games put you against bots instead. This is evident when you lose internet and the game still runs. The original idea was to first populate the game with bots and progressively replace them with real players as the game become more popular, then developers realized that if they could get away with bots, they didn't need multiplayer at all, just the illusion of it.
Side note: AFAIK, agar.io is real multiplayer, being one of the most popular game of its kind certainly helps. Of course, like in almost all online games, there are still player-run bots, but at least, it is not just JS code running on your machine.