modify habdleMessageSentByJavascript method

change the type of data in event type callback