A small factory implementation for js-signals.