[minor] examples/server/orig.js: avoiding unnecessary regexp tests

Instead of testing **every** subscription for a match, publish to the client _as soon_
as a subscription matches the packet's topic.