call Handler.handler() in ui thread and double escape messageJSON to javascript