Refactor the code related to api.eval. It seems that running message loop in cef event callback is not work