Testing native browser postMessage function