As the CurrentMessage class only ever has instance properties, and the interesting bits in the siblings are always just an object literal anyway, I would just remove the CurrentMessage class, and just have an object literal set here. That would also remove needing to export CurrentMessage for this module.