It would be better to send these through a PluginResult instead of sendJavascript().
E.g, Save the CallbackContext from "fireStartupMessages", and send results with keepCallback = true.