Refactored main loop to be asynchronous in browser