Make outputState( .. ) available after when( .. ) in JS Projections