examples/server/orig.js: avoid unnecessary regexp tests

Instead of testing every subscription for a match, publish on a client as soon as a match on its subscriptions is found.