pass a message from JS to Swift