Event Loop in the browser