JS Implementation of a news service in continuation passing style