WeakMap working but message not reaching webapge