created the new function executeInWebThread that is called from a setTimeout of 1 millisecond to guarantee that all callbacks are executed in the web view event loop thread.
Merge pull request #77 from pentateu/topic/callbacks_alerts_freeze_issue

Topic/callbacks alerts freeze issue