JavaScript pubsub implementation with wildcards, inheritance and multisubscribtions