JS sendMessage callback is now optional