update event handling from JNEXT to use a layer in between JNEXT response and PluginResult