Fixed shim for chrome message passing