Add postMessage-method